package org.user.orderfallback;

import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;



@Component
public class OrderServiceApiFallbackFactory implements FallbackFactory<OrderServiceApiFegin> {

	@Override
	public OrderServiceApiFegin create(Throwable cause) {
		    cause.printStackTrace();
		    System.out.println("进来了");
			return (OrderServiceApiFallback) sjid -> "我熔断了我熔断了我熔断了我熔断了我熔断了我熔断了我熔断了我熔断了";

	}

}
